#ifndef _HCC_ERROR_CODE_DRV_PER_FRAM_H_
#define _HCC_ERROR_CODE_DRV_PER_FRAM_H_

#include "ofc_types.h"
#include "hcc_error_code.h"
#include "hcc_error_code_drv.h"

#ifdef __cplusplus
extern "C" {
#endif

// 不含行号的错误码生成
#define HCC_MAKE_DRV_PER_FRAM_ERROR(error_code) (int)HCC_MAKE_DRIVER_ERROR(kHccDrvPerFram, error_code, HCC_ERROR_LEVEL_ERROR)
// 含行号的错误码生成
#define HCC_MAKE_DRV_PER_FRAM_ERROR_LINE(error_code) (int)HCC_ERROR(HCC_MAKE_DRIVER_ERROR(kHccDrvPerFram, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * 外设Fram驱动:外设Fram驱动
 */
enum THccDrvPerFramTag
{
	kHccDrvPerFramSuccess	=	HCC_ERROR_SUCCESS,			///< 成功,没有错误
	kHccDrvPerFramComm	=	HCC_MAKE_DRV_PER_FRAM_ERROR(0),			///<通讯错误
	kHccDrvPerFramParam	=	HCC_MAKE_DRV_PER_FRAM_ERROR(1),			///<参数错误
	kHccDrvPerFramCallBack	=	HCC_MAKE_DRV_PER_FRAM_ERROR(2),			///<回调函数未设置
};
typedef enum THccDrvPerFramTag THccDrvPerFram;


typedef Int32 THccDrvPerFramLine;
#define kHccDrvPerFramSuccessLine	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccDrvPerFramCommLine	HCC_MAKE_DRV_PER_FRAM_ERROR_LINE(0)	///<通讯错误
#define kHccDrvPerFramParamLine	HCC_MAKE_DRV_PER_FRAM_ERROR_LINE(1)	///<参数错误
#define kHccDrvPerFramCallBackLine	HCC_MAKE_DRV_PER_FRAM_ERROR_LINE(2)	///<回调函数未设置

//旧版本适配补丁
typedef THccDrvPerFram TPerFramErrorCode;

#define kPerFramErrorCodeSuccess kHccDrvPerFramSuccess
#define kPerFramErrorCodeComm kHccDrvPerFramComm
#define kPerFramErrorCodeParam kHccDrvPerFramParam
#define kPerFramErrorCodeCallBack kHccDrvPerFramCallBack

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_DRV_PER_FRAM_H_
/**
 * @
 */
